home *** CD-ROM | disk | FTP | other *** search
- function interrupt()
- {
- if(intro != null)
- {
- intro._visible = false;
- }
- if(mc_credits != null)
- {
- mc_credits.interrupt();
- }
- }
- function resume()
- {
- if(intro != null)
- {
- intro._visible = true;
- }
- if(mc_credits != null)
- {
- mc_credits.resume();
- }
- }
- function exit()
- {
- if(blnInExit == true)
- {
- return undefined;
- }
- UsageData.setSoProp("soIssue","firstTimeIssueRun",false);
- interrupt();
- lingo("spriteDialog.show(\"exit\")");
- blnInExit = true;
- }
- function creditsShow()
- {
- Tardis.splash.endSoundLoop();
- gotoAndStop(30);
- ActiveSection = "credits";
- header.clearUp();
- footer.disable();
- this.createEmptyMovieClip("mc_credits",Tardis.depth++);
- mc_credits.loadMovie(ENGINE_FOLDER + "swf/credits.swf");
- }
- function creditsComplete()
- {
- lingo("Flsh_exit");
- }
- function init()
- {
- Settings = {};
- xmlIssueData = new XML();
- xmlIssueData.onLoad = function()
- {
- setupIssue();
- delete setupIssue;
- delete xmlIssueData;
- UsageData.LOG_URL = Settings.tracking.log_url;
- UsageData.PING_URL = Settings.tracking.ping_url;
- with(UsageData)
- {
- init();
- addPingEntry();
- addSessionGroup();
- }
- delete UsageData.init;
- ConnCheck.onTestComplete = function(success)
- {
- if(success)
- {
- with(Tardis.UsageData)
- {
- if(!active)
- {
- checkSend();
- }
- }
- }
- else
- {
- Tardis.UsageData.dbg("no connection");
- }
- };
- ConnCheck.TIMER_INTERVAL = Settings.tracking.interval;
- ConnCheck.startTimer();
- if(PLAY_MODE == "director")
- {
- gotoAndStop(11);
- }
- else
- {
- gotoAndStop(21);
- footer.show();
- header.clearUp();
- }
- delete Settings.tracking;
- delete init;
- };
- xmlIssueData.load(ISSUE_XMLFILE);
- }
- function setupIssue()
- {
- var ndRoot = xmlIssueData.firstChild;
- ASSETS_FOLDER = ndRoot.byName("assets").getText();
- ENGINE_FOLDER = ndRoot.byName("engine").getText();
- lingo("spriteShell.setAssetsPath(\"" + ASSETS_FOLDER + "\")");
- var ndSponsor = ndRoot.byName("sponsor");
- var ndTracking = ndRoot.byName("tracking");
- var ndDate = ndRoot.byName("date");
- var ndSponsorVideo = ndSponsor.byName("video");
- Sections = new SectionsList(ndRoot.byName("sections"));
- delete SectionsList;
- Colors = new ColorsObject(ndRoot.byName("colors"));
- delete ColorsObject;
- Settings = {issue_month:ndDate.attributes.month,issue_year:ndDate.attributes.year,version:ndRoot.byName("version").getText(),FEATURE_ASSETS:ASSETS_FOLDER + "bespoke/feature",introVideo:ndRoot.byName("introVideo").getText(),sponsor:{video:ndSponsorVideo.getText(),videoSkipDelay:ndSponsorVideo.attributes.skipdelay,overlay:ndSponsor.byName("overlay").getText(),overlayTint:ndSponsor.byName("overlayTint").getText(),button:ndSponsor.byName("button").getText()},tracking:{log_url:ndTracking.byName("log_url").getText(),ping_url:ndTracking.byName("ping_url").getText(),interval:ndTracking.byName("interval").getText()}};
- }
- blnInExit = false;
- connTardisReceive = new LocalConnection();
- connTardisReceive.exit_cancel = function()
- {
- Tardis.blnInExit = false;
- Tardis.footer.buttonReset("exit");
- Tardis.resume();
- };
- connTardisReceive.UsageData_markExit = function()
- {
- Tardis.UsageData.addPageEntry(99);
- Tardis.UsageData.checkSend();
- };
- connTardisReceive.ConnCheck_stopTimer = function()
- {
- Tardis.ConnCheck.stopTimer();
- };
- connTardisReceive.childlock_lock = function()
- {
- Tardis.ChildLock.lock();
- };
- connTardisReceive.childlock_unlock = function()
- {
- Tardis.ChildLock.unlock();
- };
- connTardisReceive.intro_nextState = function()
- {
- Tardis.intro.nextState();
- };
- connTardisReceive.UsageData_setValue = function(strSoObject, strProp, val)
- {
- Tardis.UsageData.setSoProp(strSoObject,strProp,val);
- };
- success = connTardisReceive.connect("Tardis");
-